package cn.ssm.service;

import java.util.List;
import java.util.Map;

import cn.ssm.pojo.Admin;
import cn.ssm.pojo.User;

/**
 * 管理用户业务接口
 * 
 * @author
 *
 */

public interface AdminService {
	/**
	 * 查询所有用户
	 * @param paramas 
	 * @return
	 */
	List<Admin> getAdminList(Map<String, Object> paramas);
	
	//添加用户
	int addAdmin(Admin admin);
	
	//修改用户
	int updateAdmin(Admin admin);
	
	//删除用户
	int deleteAdmin(Admin admin);
	
	//查询admin总数
	int getAdminCount();

	/**
	 * 获取指定用户
	 * @param adminCode
	 * @param adminPassword
	 * @return
	 */
	Admin getAdmin(String adminCode, String adminPassword);

	int selectAdmin(String adminName);
	
	/**
	 * 验证注册
	 * @param admin
	 * @return
	 */
	List<Admin> getAdmin(Admin admin);

	List<Admin> getAdmins(Admin admin);

	List<Admin> getAdminCheck(Admin admin);
}
